<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$ngay=array('01','02','03','04','05','06','07','08','09','10','11','12','13','14','15',
'16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31');
$thang=array('01','02','03','04','05','06','07','08','09','10','11','12');
$gioitinh=array('Male','Female');
$nam=array('1910','1911','1912','1913','1914','1915','1916','1917','1918','1919',
            '1920','1921','1922','1923','1924','1925','1926','1927','1928','1929',
            '1930','1931','1932','1933','1934','1935','1936','1937','1938','1939',
            '1940','1941','1942','1943','1944','1945','1946','1947','1948','1949',
            '1950','1951','1952','1953','1954','1955','1956','1957','1958','1959',
           '1960','1961','1962','1963','1964','1965','1966','1967','1968','1969',
           '1970','1971','1972','1973','1974','1975','1976','1977','1978','1979',
           '1980','1981','1982','1983','1984','1985','1986','1987','1988','1989',
           '1990','1991','1992','1993','1994','1995','1996','1997','1998','1999',
           '2000','2001','2002','2003','2004','2005','2006','2007','2008','2009',
           '2010','2011','2012','2013','2014','2015','2016','2017','2018','2019');
//$vitriungtuyen=array('Manager','Developer','Tester');
?>
<form action="<?php echo base_url()?>interview/insertInterview" name="formInsertInterview" method="POST" onsubmit="return checkFormInsertInterview();">
    <table id="box-table-a" cellspacing="1" align="right" width="900px">
        <tr>
            <td colspan="4"><input type="hidden" name="txtCVID" value="<?=$CV_ID?>"</td>
        </tr>
        <tr>
            <td colspan="4" class="bar">
                Scheduling Interview:<strong><?=$FullName?></strong>    CV Name: <strong><?=$CV_Name?></strong>
            </td>
        </tr>
        <tr>
        <td class="row10" align="left">
            Date of Interview
        </td>
        <td class="row12" align="left" >
            <select name="txtDay">
                <?php
                                   foreach($ngay as $item){
                                     if($item == $Day)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            <select name="txtMonth">
                <?php
                                   foreach($thang as $item){
                                     if($item == $Month)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            <select name="txtYear">
                <?php
                                   foreach($nam as $item){
                                     if($item == $Year)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
        </td>
         <td class="row10" align="left" >Number of Round</td>
            <td class="row12" align="left"><input type="text" name="txtNumberRound" class="form" value="<?=$numberofinterview?>"></td>
        <tr>
           
                
            </td>
            <td class="row10" align="left" >CV Status</td>
            <td class="row12" align="left"><textarea name="txtCVStatus" class="form"><?php if(isset($CV_Status)) echo $CV_Status;?></textarea>
                
            </td>
            <td class="row10" align="left" >Time</td>
            <td class="row12" align="left">
                <input type="text" name="txtHour" class="form" ></td>
            </td>
        </tr>
        <tr>
            
            <td class="row10" align="left">Interviewer</td>
            <td class="row12" align="left">
                <input type="text" name="txtInterviewer" class="form">
            </td>
             <td class="row10" align="left" >Position Interview</td>
            <td class="row12" align="left" colspan="3">
            <select name="txtPositionInterview">
                <?php
                                   foreach($vitriungtuyen as $item){
                                     if($item == $PositionInterview)
                                     echo "<option selected>$item</option>";
                                     else echo "<option>$item</option>";
                                   }
                      ?>
            </select>
            </td>
        </tr>
        
        <tr>
            <td class="row1" align="center" colspan="2">
                <input type="submit" name="Interview" id="submit" value="Set">
            </td>
            <td class="row1" align="center" colspan="2">
                <input type="reset" name="Reset" id="submit" value="Reset">
            </td>
        </tr>
          <tr>
        <td class="row1" align="center" colspan="4">
            <?php $titleback = '<img src ="'.base_url().'templates/images/icons/back.jpg" width=40 height=25 title="Back"/>';
            $back = anchor("interview/loadListCV",$titleback);
            echo $back;?>
        </td>
    </tr>
    </table>
</form>